import { ApiProperty, PartialType } from '@nestjs/swagger';
import { CreateContentDto } from './create-content.dto';
import { IsBoolean, IsOptional } from 'class-validator';

export class UpdateContentDto extends PartialType(CreateContentDto) {
  @ApiProperty({
    description: '是否被删除，软删除标记',
    default: false,
    required: false,
  })
  @IsBoolean()
  @IsOptional()
  isDeleted?: boolean;
}
